using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace MP.LayerHelper.MP_OBS
{

    public class DataAccessAdapterFactory
    {
        public DataAccessAdapterBase CreateAdapter()
        {
            return (new MP.LayerHelper.MP_OBS.DAL.DatabaseSpecific.DataAccessAdapter());
        }

        public static string GetMaxString(string data, int MaxLength)
        {
            if (string.IsNullOrEmpty(data)) return "";
            string str = data;
            if (data.Length > MaxLength)
                str = data.Substring(0, MaxLength - 1);
            return str;
        }
    }

}

